'use strict';
/**
 * Created by FreezeSoul on 2017/8/1.
 */
define([
        'angular',
        'app/modules/index/define',
        'app/modules/index/services/index'
    ],
    function(angular) {
        angular.module('ad.index')
            .controller('adIndexSettingController',['$scope','$uibModalInstance','adIndexEditService','item',function($scope,$uibModalInstance,service,item) {
                $scope.item = item;
                $scope.chart_name = item.chart_name;

                $scope.ok = function () {
                    $scope.item.chart_name = $scope.chart_name;
                    $uibModalInstance.close($scope.item);
                };

                $scope.cancel = function () {
                    $uibModalInstance.dismiss('cancel');
                };
            }]);
    });